r=int(input("请输入一个年份Y="))
def run (x):
    if x %4==0 and x %100 !=0 or x%400==0:
        return True
    else:
        return False
print (run(r))